﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Infrastructure.ObjectModel;
using Microsoft.Xna.Framework;

namespace B10_Ex02_Elad_034695114_Meyron_026607788.ObjectModel
{
    public class MotherShip : EnemySpriteBase
    {
        private const int k_Points = 400;
        private const string k_AsstetName = @"Sprites\MotherShip_32x120";

        public MotherShip(Game i_game) : base(k_AsstetName, i_game)
        {
            Game.Components.Add(this);
            this.Points = k_Points;
        }

        public override void Initialize()
        {
            base.Initialize();
            this.Position = new Vector2(Game.GraphicsDevice.Viewport.Width, this.Height);
            this.Velocity = new Vector2(-(this.Width / 2), 0);
        }

        public override void Update(GameTime gameTime)
        {
            // Check if ship is off screen
            if (this.Position.X + this.Texture.Width < 0)
            {
                Distroy();
            }

            base.Update(gameTime);
        }
    }
}